﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;

namespace MigratorWizard
{
    public partial class Finished : UserControl
    {
        public Finished()
        {
            InitializeComponent();
        }

        private Main main;

        public Main Main
        {
            set { main = value; }
        }

        private void Finished_VisibleChanged(object sender, EventArgs e)
        {
            if (this.main != null && this.Visible)
            {
                main.EnableBack = false;
                main.EnableNext = false;
                main.EnableCancel = true;
                main.CanelButtonText = "&Close";
            }
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            ProcessStartInfo sInfo = new ProcessStartInfo("http://www.codeplex.com/TheMigrator/");
            try
            {
                Process.Start(sInfo);
            }
            catch { }
        }
    }
}
